@import "baseScss";


.container {
  // background-color: #ccc;
  padding-bottom: 100rem / $baseFont;
  min-height: 100%;
  .banner {
    margin: 0 auto;
    width: 750rem / $baseFont;
    height: 506rem / $baseFont;
    img {
      width: 100%;
      height: 100%;
      vertical-align: middle;
    }
  }
  .address {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 710rem / $baseFont;
    height: 132rem / $baseFont;
    background-color: #fff;
    border-radius: (10rem / $baseFont);
    box-shadow: 0 (3rem / $baseFont) (6rem / $baseFont) 0 #ccc;
    transform: translateY(-54rem / $baseFont);
    .addr-l {
      margin-left: 36rem / $baseFont;
      p {
        margin-top: 31rem / $baseFont;
        font-size: 27rem / $baseFont;
        color: #222;
      }
      span {
        margin-top: 13rem / $baseFont;
        font-size: 23rem / $baseFont;
        color: #666;
      }
    }
    .addr-r {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 (5rem / $baseFont);
      width: 160rem / $baseFont;
      height: 63rem / $baseFont;
      margin: (35rem / $baseFont) (22rem / $baseFont);
      background-color: $baseColor;
      color: #fff;
      font-size: 22rem / $baseFont;
      border-radius: 32rem / $baseFont;
      span {
        width: 80rem / $baseFont;
        height: 53rem / $baseFont;
        line-height: 53rem / $baseFont;
        text-align: center;
        &.active {
          background-color: #fff;
          color: $baseColor;
          border-radius: 27rem / $baseFont;
        }
      }
    }
  }
  .content {
    // background-color: skyblue;
    margin: 0 auto;
    // margin: 0 auto (100rem / $baseFont);
    width: 750rem / $baseFont;
    height: 700rem / $baseFont;
    transform: translateY(-25rem / $baseFont);
    .menu {
      width: 180rem / $baseFont;
      a {
        &.active {
          color: #fff;
          background-color: $baseColor;
        }
        display: inline-block;
        width: 100%;
        height: 90rem / $baseFont;
        line-height: 90rem / $baseFont;
        text-align: center;
        font-size: 27rem / $baseFont;
        color: #8c8c8c;
        background-color: #f6f6f6;
      }
    }
    .list {
      box-sizing: border-box;
      padding-left: 24rem / $baseFont;
      padding-right: 20rem / $baseFont;
      width: 570rem / $baseFont;
      height: 100%;
      overflow: auto;
      background-color: #fff;
      >.title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20rem / $baseFont;
        margin-bottom: 34rem / $baseFont;
        width: 100%;
        span {
          font-size: 27rem / $baseFont;
          color: $baseColor;
        }
        .line {
          margin-left: 16rem / $baseFont;
          flex: 1;
          height: 2rem / $baseFont;
          background-color: #f4f4f4;
        }
      }
      .goods {
        position: relative;
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 140rem / $baseFont;
        margin-bottom: 47rem / $baseFont;
        &.xinpin::after, &.renqi::after {
          position: absolute;
          top: 0;
          left: 0;
          content: '新品';
          width: 66rem / $baseFont;
          height: 32rem / $baseFont;
          line-height: 32rem / $baseFont;
          text-align: center;
          font-size: 19rem / $baseFont;
          color: #fff;
          background-color: #60cd1f;
          $list: (10rem / $baseFont) 0 (10rem / $baseFont) 0;
          border-radius: #{$list}/#{$list};
        }
        &.renqi::after {
          content: '人气';
          background-color: #f17a08;
        }
        >img {
          width: 140rem / $baseFont;
          height: 140rem / $baseFont;
          border-radius: 10rem / $baseFont;
        }
        .info {
          flex: 1;
          margin-left: 16rem / $baseFont;
          .title {
            line-height: 29rem / $baseFont;
            font-size: 29rem / $baseFont;
            color: #171a1f;
          }
          .desc {
            margin-top: 13rem / $baseFont;
            margin-bottom: 33rem / $baseFont;
            font-size: 21rem / $baseFont;
            color: #999;
          }
          >div {
            display: flex;
            justify-content: space-between;
            width: 100%;
            .price {
              font-size: 31rem / $baseFont;
              color: $baseColor;
              .delete {
                margin-left: 20rem / $baseFont;
                font-size: 25rem / $baseFont;
                color: #c6c6c6;
                text-decoration: line-through;
              }
            }
            >img {
              width: 41rem / $baseFont;
              height: 41rem / $baseFont;
            }
          }
        }
      }
    }
  }
  footer.tabs {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 750rem / $baseFont;
    height: 100rem / $baseFont;
    border-top: (2rem / $baseFont) solid #ccc;
    background-color: #fff;
    a.tabs-item {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      &.active {
        span {
          color: $baseColor;
        }
      }
      img {
        width: 44rem / $baseFont;
        height: 44rem / $baseFont;
      }
      span {
        font-size: 23rem / $baseFont;
        color: #888;
      }
    }
  }
}
